package com.unitd.modules.sso.model;

import com.unitd.frame.comm.bean.BaseBean;

import java.util.ArrayList;
import java.util.List;

/**
 * @desc 当前登录用户信息实体对象
 * @filename LoginUser.java
 * @copyright www.unitd.com
 * @author Hudan
 * @version 1.0
 * @date  2018-01-30
 */
public class LoginUser extends BaseBean {

	/** 登录用户ID */
	private int id;
	/** 登录用户名 */
	private String name;
	/** 登录用户是否为超级管理员 */
	private boolean superAdmin;
	/** 授权信息 */
	private List<String> gantProfiles;

	public LoginUser(String name) {
		super();
		this.name = name;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public boolean isSuperAdmin() {
		return superAdmin;
	}

	public void setSuperAdmin(boolean superAdmin) {
		this.superAdmin = superAdmin;
	}

	public List<String> getGantProfiles() {
		if (gantProfiles == null) gantProfiles = new ArrayList<String>();
		return gantProfiles;
	}

	public void setGantProfiles(List<String> gantProfiles) {
		this.gantProfiles = gantProfiles;
	}
}